Skip to content

chore: bump @anthropic-ai/claude-agent-sdk 0.2.73 -> 0.2.138#450

Open
gewenyu99 wants to merge 1 commit into
mainfrom
posthog-code/bump-claude-agent-sdk
Open

chore: bump @anthropic-ai/claude-agent-sdk 0.2.73 -> 0.2.138#450
gewenyu99 wants to merge 1 commit into
mainfrom
posthog-code/bump-claude-agent-sdk

Conversation

@gewenyu99
Copy link
Copy Markdown
Collaborator

Summary

  • Bumps @anthropic-ai/claude-agent-sdk from 0.2.73 to 0.2.138 (~65 patch versions of fixes).
  • Migrates the deprecated 'Skill' entry in allowedTools to the new top-level skills: 'all' option (SDK ≥0.2.133). Behavior unchanged — every skill discovered under .claude/skills/ via settingSources: ['project'] is still enabled. Per the SDK docs, omitting skills is not "skills off", so we set 'all' explicitly.
  • pnpm-lock.yaml regenerated.

Notable changelog items between 0.2.73 → 0.2.138

Version Change Handled?
0.2.113 options.env now replaces process.env for the CLI subprocess (was overlay) ✅ No action needed — agent-interface.ts already spreads ...process.env
0.2.133 'Skill' in allowedTools deprecated → use skills option ✅ Migrated in this PR
0.2.136 TodoWrite deprecated → future SDKs will route through Task tools (TaskCreate/TaskGet/TaskUpdate/TaskList) ⏳ Deferred (see below)

Why TodoWrite is deferred

The announced replacement (TaskCreate/TaskGet/TaskUpdate/TaskList) does not yet have type definitions or tool entries in 0.2.138 or 0.2.139's sdk.d.ts — the 0.2.136 changelog entry is forward-looking only. The existing SDKTaskStarted/SDKTaskUpdated/SDKTaskNotification system messages refer to the SDK's subagent/background-task system (driven by the Task tool already in allowedTools), not a TodoWrite replacement.

TodoWrite still works in 0.2.138, so the UI's syncTodos interception in agent-interface.ts:1217-1225 and the commandment at commandments.ts:24 are left as-is. Worth revisiting once the replacement tools actually ship.

Why 0.2.138 (not 0.2.139)

0.2.139 was published 2026-05-11 (today, only a few hours before this PR). 0.2.138 published 2026-05-09 satisfies a >24h release-age window. No new deprecations between 0.2.137 → 0.2.139 — those entries are all "Updated to parity with Claude Code v2.1.x".

Test plan

  • pnpm typecheck
  • pnpm build (includes test:smokenode --input-type=module -e "import './dist/bin.js'" greps for "PostHog Wizard")
  • pnpm jest — 596/600 passing, 3 skipped, 1 pre-existing flake (provision-cli.test.ts:141 times out under parallel load; passes in isolation against both pre- and post-change code)
  • src/lib/__tests__/agent-interface.test.ts — 12/12 passing
  • Manual smoke: run wizard against a real project that loads a skill and confirm the agent can still call Skill — verifies skills: 'all' replaces the allowedTools entry

Generated-By: PostHog Code
Task-Id: 750b6719-988d-435f-ae85-a7d75ecfdf1c

Pulls in ~65 patch versions of fixes. Also migrates the deprecated
`'Skill'` entry in `allowedTools` to the new top-level `skills: 'all'`
option (SDK >=0.2.133). Behavior is unchanged: every skill discovered
under `.claude/skills/` (via `settingSources: ['project']`) is still
enabled.

Note: `TodoWrite` is also flagged as deprecated in the SDK changelog
(0.2.136), but the announced replacement tools (`TaskCreate`/`TaskGet`/
`TaskUpdate`/`TaskList`) do not yet have type definitions or tool
entries in 0.2.139's `sdk.d.ts`. Leaving the existing TodoWrite
interception in `agent-interface.ts` untouched until the replacement
actually ships.

Generated-By: PostHog Code
Task-Id: 750b6719-988d-435f-ae85-a7d75ecfdf1c
@github-actions
Copy link
Copy Markdown

🧙 Wizard CI

Run the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands:

Test all apps:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci basic-integration
  • /wizard-ci misc
  • /wizard-ci revenue

Test an individual app:

  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
Show more apps
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci misc/quack-quack
  • /wizard-ci revenue/stripe

Results will be posted here when complete.

@gewenyu99 gewenyu99 requested a review from a team May 12, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant